import request from '@/utils/request'
export default {
    namespaced: true,
    state: {
        roles: []
    },
    mutations: {
        refreshFindAllRoles(state,data) {
            state.roles = data
        }
    },
    actions: {
        findAllRoles({commit}) {
            let res = request.get("/role/findAll").then(res => {
                commit("refreshFindAllRoles",res.data)
            })
        }
    }
}